PROJECTENGRAM

[REV] CSARCH1 COMPREHENSIVE FINALS REVIEWER

Tags: #◇Computer Science #◇CSARCH1 #◇Digital Logic #◇Verilog #◇Reviewer #◇Finals


CSARCH1 Comprehensive Finals Reviewer

◇Overview

This reviewer consolidates Computer Organization and Digital Logic (CSARCH1). Core disciplines encompass positional base conversions, signed binary data representations (Sign-Magnitude, 1's Complement, 2's Complement), Boolean algebra theorems, Karnaugh Maps (K-Maps) minimization, combinational logic design (Adders, Multiplexers, Decoders, Encoders), sequential circuits (Latches, Flip-Flops: SR, D, JK, T), Finite State Machines (Mealy vs Moore models), state transition minimization, and Verilog Hardware Description Language (structural gate-level and behavioral modeling).


◇1. Digital Combinational & Sequential Building Blocks

ComponentFunction / Truth BehaviorKey Boolean Equations
Half AdderAdds 2 single bitsSum=A⊕B\text{Sum} = A \oplus B, Cout=AB\text{Cout} = A B
Full AdderAdds 2 bits plus carry-in CinCinSum=A⊕B⊕Cin\text{Sum} = A \oplus B \oplus Cin, Cout=AB+Cin(A⊕B)\text{Cout} = A B + Cin(A \oplus B)
Multiplexer (MUX)2n2^n-to-1 data selector using nn select linesY=∑i=02n−1mi⋅DiY = \sum_{i=0}^{2^n-1} m_i \cdot D_i
Decodernn-to-2n2^n binary line decoderActivates exactly one output line corresponding to input binary value
D Flip-FlopData storage on active clock edgeQ(t+1)=DQ(t+1) = D
JK Flip-FlopUniversal storage with toggle stateQ(t+1)=JQˉ+KˉQQ(t+1) = J \bar{Q} + \bar{K} Q (Toggles when J=1,K=1J=1, K=1)
T Flip-FlopBinary counter toggle elementQ(t+1)=T⊕QQ(t+1) = T \oplus Q

◇2. Moore vs Mealy Finite State Machines

  • Moore Machine: Outputs are associated strictly with states. Synchronous and glitch-free; often requires more states.
  • Mealy Machine: Outputs are associated with transitions (state + inputs). Responds one cycle faster, uses fewer states, but output can glitch with input noise.

◇3. High-Yield Exam Checklist

  • In nn-bit 2's complement, what is the valid numerical range? −2n−1-2^{n-1} to 2n−1−12^{n-1}-1 (e.g. 8-bit: −128-128 to +127+127).
  • How is 2's complement computed? Invert all bits and add 1.
  • In a K-Map, can you group cells in groups of 3 or 6? NO! Groups must strictly be powers of 2 (1,2,4,8,161, 2, 4, 8, 16).
  • In Verilog, what assignment operator is used inside clocked always @(posedge clk) blocks? Non-blocking assignment <=.
  • For continuous combinational assignments in Verilog, what keyword is used? assign with blocking evaluation.

◇References & Navigation

CONFIRMATION // 理解度の確認

ACTIVE RECALL VERIFICATION

Select an answer to verify conceptual comprehension and reveal the technical rationale.

Q1

What is the 8-bit 2's complement representation of decimal −43-43?

Q2

How many 22-to-11 multiplexers are required to construct an 88-to-11 multiplexer?

Q3

What is the characteristic next-state equation for a JK flip-flop?

Q4

Which statement correctly differentiates a Moore machine from a Mealy machine?

Q5

In Verilog HDL, which statement should be used to describe sequential registers triggered on the rising edge of a clock?